home *** CD-ROM | disk | FTP | other *** search
- /* Effect Operators Mosaic
- 000
- */
-
- call addlib("rexxmathlib.library", 5, -30, 0)
-
- options results
-
- parse ARG Port Opt1 Opt2 Opt3 s0 t0 s1 t1 b
-
- ADDRESS value Port
-
- pp_GetWidth
- w=result
- pp_GetHeight
- h=result
- pp_GetDepth
- D=result
-
- pp_ComposeReqOff
- pp_GetCurrentBrush
- CB=result
- pp_FindEmptyBrush
- Brush=result
- pp_SetBrush Brush
- pp_GotoFrame s1
- pp_PicttoSpare
- pp_GotoFrame s0
- pp_Pickbrush 0 0 W H
-
- step=(s1-s0)
- Step_f=100/Step
- pp_Spare
- pp_EffectOn
- DO i=s0 to s1
-
- IF t1=1 then DO
- pp_GotoFrame (s1+i-s0)
- pp_PicttoSpare
- END
-
- pp_GotoFrame i
-
- if t0=0 then DO
- pp_EffectOff
- pp_Compose 0 100 0
- pp_plot W/2 H/2
- pp_EffectOn
- END
-
- f=Step_f*(i-s0)
- pp_Compose 0 f 0
- pp_boxf 0 0 W H
- END
- pp_FreeBrush
- pp_SetBrush CB
-
- pp_Gotoframe s0
- pp_FreeBrush
- pp_SetBrush CB
-
- pp_EffectOff
- pp_ComposeReqOn
-
- EXIT
-